import Vue from 'vue'
import Router from 'vue-router'

import login from '../components/login.vue'
import tt from '../components/tt.vue'
//底部选项卡
import index from '../components/index.vue'
//底部选项卡跳转页面
import homePage from '../components/homePage.vue'//主页
import task from '../components/task.vue'//任务达人
import welfare from '../components/welfare.vue'//超级福利
import me from '../components/me.vue' //我的帮帮

//全局
import userCom from '../components/overall/userCom.vue'//个人界面评价
import cueMsg from '../components/overall/cueMsg.vue'//通知消息
import Evaluation from '../components/overall/Evaluation.vue'//订单/达人/服务评价
import resetZFB from '../components/overall//resetZFB.vue'//重置支付宝
import resetPsw from '../components/overall//resetPsw.vue'//重置密码
import resetAgain from '../components/overall//resetAgain.vue'//再次确认密码
import PwdDialog from '../components/overall//PwdDialog.vue'
//发布任务子页面

import print from '../components/add/print.vue'//打印任务
import printCom from '../components/add/printCom.vue'//打印任务-确认
import printGuide from '../components/add/printGuide.vue'//打印指南
import secHandPub from '../components/add/secHandPub.vue'//二手任务-发布
import businessComfig from '../components/add/businessComfig.vue'//二手任务-买卖
import partTimePub from '../components/add/partTimePub.vue'//兼职收买-发布
import ptPubDay from '../components/add/ptPubDay.vue'//兼职收买-发布天数
import ptPubCom from '../components/add/ptPubCom.vue'//兼职收买-确认
import expressPub from '../components/add/expressPub.vue'//快递收买-发布
import exPubCom from '../components/add/exPubCom.vue'//快递收买-确认
import doublePub from '../components/add/doublePub.vue'//替身收买-发布
import douPubCom from '../components/add/douPubCom.vue'//替身收买-确认

//主页子页面
import secHand from '../components/homepage/secHand.vue'//二手任务
import partTime from '../components/homepage/partTime.vue'//兼职收买-接受
import Express from '../components/homepage/Express.vue'//快递收买-接受
import Double from '../components/homepage/Double.vue'//替身收买-接受


//超级达人子页面
import userCheck from '../components/task/userCheck.vue'//用户查看详情子页面
import taskComment from '../components/task/taskComment.vue'//达人详情评论
import serComment from '../components/task/serComment.vue'//服务详情评论
import orderConfirm from '../components/task/orderConfirm.vue'//确认订单

//超级福利子页面
import moreList from '../components/welfare/moreList.vue'//更多列表
import welfareDel from '../components/welfare/welfareDel.vue'//福利详情
import rollConfim from '../components/welfare/rollConfim.vue'//确认订单


//我的帮帮子页面-个人信息
import userInfo from '../components/mine/userInfo/userInfo.vue'//个人信息查看及修改
import userMsg from '../components/mine/userInfo/userMsg.vue'//我的消息


//我的帮帮子页面-订单列表
import moreOrder from '../components/mine/myOrder/moreOrder.vue'//更多订单列表
import secondHandsellConfim from '../components/mine/myOrder/secondHandsellConfim.vue'//二手任务甩卖-确认
import partTimeConfim from '../components/mine/myOrder/partTimeConfim.vue'//兼职收买-确认
import expressConfim from '../components/mine/myOrder/expressConfim.vue'//快递收买-确认
import doubleConfim from '../components/mine/myOrder/doubleConfim.vue'//替身收买-确认
import serverConfirm from '../components/mine/myOrder/serverConfirm.vue'//替身收买-确认

//我的帮帮子页面-超级校园帮
import myWallet from '../components/mine/mySuperCampus/myWallet.vue'//我的钱包-确认
import myWalletDrawals from '../components/mine/mySuperCampus/myWalletDrawals.vue'//我的钱包-提现.
import myWalletRecharge from '../components/mine/mySuperCampus/myWalletRecharge.vue'//我的钱包-充值.
import myWelfare from '../components/mine/mySuperCampus/myWelfare.vue'//我的福利-所有.
import myWelfareMore from '../components/mine/mySuperCampus/myWelfareMore.vue'//我的福利-所有.
import myWelfareFormat from '../components/mine/mySuperCampus/myWelfareFormat.vue'//我的福利-详情.
import myEvaluate from '../components/mine/mySuperCampus/myEvaluate.vue'//我发出的评价
import evaluate from '../components/mine/mySuperCampus/evaluate.vue'//对我的评价
import myTask from '../components/mine/mySuperCampus/myTask.vue'//达人店铺
import editProduct from '../components/mine/mySuperCampus/editProduct.vue'//服务编辑
import storeDetails from '../components/mine/mySuperCampus/storeDetails.vue'//服务详情编辑
import addEditProduct from '../components/mine/mySuperCampus/addEditProduct.vue'//新增服务编辑
import addStoreDetails from '../components/mine/mySuperCampus/addStoreDetails.vue'//服务详情编辑

//我的帮帮-达人认证
import noCertified from '../components/mine/myCertified/noCertified.vue'//达人认证-未认证.
import userVerified from '../components/mine/myCertified/userVerified.vue' //实名认证
import phoneVerification from '../components/mine/myCertified/phoneVerification.vue'//手机验证
import setPassword from '../components/mine/myCertified/setPassword.vue'//设置支付密码

//我的帮帮子页面-我的订单
import myBill from '../components/mine/myBill/myBill.vue'//我的账单



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login,
    },
 {
      path: '/tt',
      name: 'tt',
      component: tt,
    },
     {
      path: '/PwdDialog',
      name: 'PwdDialog',
      component:PwdDialog,
    },
    {
      path: '/index',
      name: 'index',
      component: index,
      children:[
        {
          path: '/homePage',
          name: 'homePage',
          component: homePage,
        },
        {
          path: '/task',
          name: 'task',
          component: task,
        },
        {
          path: '/welfare',
          name: 'welfare',
          component: welfare,
        },
        {
          path: '/me',
          name: 'me',
          component: me,
        },
      ]
    },
    //实名认证
    {
      path: '/userVerified',
      name: 'userVerified',
      component: userVerified,
    },
    {
      path: '/phoneVerification',
      name: 'phoneVerification',
      component: phoneVerification,
    },
    {
      path: '/setPassword',
      name: 'setPassword',
      component: setPassword,
    },
    //全局页面
    {
      path: '/userCom',
      name: 'userCom',
      component: userCom,
    },
    {
      path: '/cueMsg',
      name: 'cueMsg',
      component: cueMsg,
    },
    {
      path: '/Evaluation/:id',
      name: 'Evaluation',
      component: Evaluation,
    },
    //主页子页面
    {
      path: '/secHand/:id',
      name: 'secHand',
      component: secHand,
       meta: {
        auth: true,
      }
    },
    {
      path: '/partTime/:id',
      name: 'partTime',
      component: partTime,
       meta: {
        auth: true,
      }
    },
    {
      path: '/Double/:id',
      name: 'Double',
      component: Double,
       meta: {
        auth: true,
      }
    },
    {
      path: '/Express/:id',
      name: 'Express',
      component: Express,
       meta: {
        auth: true,
      }
    },
    
    //发布任务子页面
    {
      path: '/print',
      name: 'print',
      component: print,
    },
     {
      path: '/printCom',
      name: 'printCom',
      component: printCom,
    },
    {
      path: '/printGuide',
      name: 'printGuide',
      component: printGuide,
    },
    {
      path: '/secHandPub',
      name: 'secHandPub',
      component: secHandPub,
      meta: {
        auth: true,
      }
    },
    {
      path: '/businessComfig',
      name: 'businessComfig',
      component: businessComfig,
    },
    {
      path: '/partTimePub/:allcount/:count',
      name: 'partTimePub',
      component: partTimePub,
    },
    {
      path: '/ptPubDay',
      name: 'ptPubDay',
      component: ptPubDay,
       meta: {
        auth: true,
      }
    },
    {
      path: '/ptPubCom/:allcount/:count',
      name: 'ptPubCom',
      component: ptPubCom,
    },
    {
      path: '/expressPub',
      name: 'expressPub',
      component: expressPub,
      meta: {
        auth: true,
      }
    },
    {
      path: '/exPubCom',
      name: 'exPubCom',
      component: exPubCom,
    },
    {
      path: '/doublePub',
      name: 'doublePub',
      component: doublePub,
       meta: {
        auth: true,
      }
    },
    {
      path: '/douPubCom',
      name: 'douPubCom',
      component: douPubCom,
    },
    
    //任务达人子页面
    {
      path: '/addEditProduct/:id',
      name: 'addEditProduct',
      component: addEditProduct,
    },
    {
      path: '/addStoreDetails',
      name: 'addStoreDetails',
      component: addStoreDetails,
    },
    {
      path: '/userCheck/:id',
      name: 'userCheck',
      component: userCheck,
    },
    {
      path: '/taskComment/:id',
      name: 'taskComment',
      component: taskComment,
    },
    {
      path: '/orderConfirm',
      name: 'orderConfirm',
      component: orderConfirm,
    },
    {
      path: '/serComment/:id',
      name: 'serComment',
      component: serComment,
    },
    //超级福利子页面
    {
      path: '/moreList/:type',
      name: 'moreList',
      component: moreList,
    },
    {
      path: '/welfareDel/:id',
      name: 'welfareDel',
      component: welfareDel,
    },
    {
      path: '/rollConfim',
      name: 'rollConfim',
      component: rollConfim,
    },
    //我的帮帮子页面-个人信息
    {
      path: '/userInfo',
      name: 'userInfo',
      component: userInfo,
    },
    {
      path: '/userMsg',
      name: 'userMsg',
      component: userMsg,
    },
    
    
    //我的帮帮子页面-订单列表
    {
      path: '/moreOrder',
      name: 'moreOrder',
      component: moreOrder,
    },
    {
      path: '/secondHandsellConfim/:id',
      name: 'secondHandsellConfim',
      component: secondHandsellConfim,
    },
    {
      path: '/partTimeConfim/:id',
      name: 'partTimeConfim',
      component: partTimeConfim,
    },
     {
      path: '/expressConfim/:id',
      name: 'expressConfim',
      component: expressConfim,
    },
    {
      path: '/doubleConfim/:id',
      name: 'doubleConfim',
      component: doubleConfim,
    },
    {
      path: '/serverConfirm/:id',
      name: 'serverConfirm',
      component: serverConfirm,
    },
    //我的帮帮子页面-超级校园帮
     {
      path: '/myWallet/:id',
      name: 'myWallet',
      component: myWallet,
    },
     {
      path: '/myWalletDrawals',
      name: 'myWalletDrawals',
      component: myWalletDrawals,
    },
    {
      path: '/myWalletRecharge',
      name: 'myWalletRecharge',
      component: myWalletRecharge,
    },
    {
      path: '/myWelfare',
      name: 'myWelfare',
      component: myWelfare,
    },
    {
      path: '/myWelfareMore/:type',
      name: 'myWelfareMore',
      component: myWelfareMore,
    },
    {
      path: '/myWelfareFormat/:id',
      name: 'myWelfareFormat',
      component: myWelfareFormat,
    },
    {
      path: '/myEvaluate',
      name: 'myEvaluate',
      component: myEvaluate,
    },
    {
      path: '/evaluate/:id',
      name: 'evaluate',
      component: evaluate,
    },
    {
      path: '/resetZFB',
      name: 'resetZFB',
      component: resetZFB,
    },
    {
      path: '/resetPsw/:id',
      name: 'resetPsw',
      component: resetPsw,
    },
    {
      path: '/resetAgain',
      name: 'resetAgain',
      component: resetAgain,
    },
    //我的帮帮-达人认证
    {
      path: '/noCertified',
      name: 'noCertified',
      component: noCertified,
    },
    {
      path: '/myTask',
      name: 'myTask',
      component: myTask,
      meta: {
        auth: true,
      }
    },
    {
      path: '/editProduct/:id',
      name: 'editProduct',
      component: editProduct,
    },
    {
      path: '/storeDetails',
      name: 'storeDetails',
      component: storeDetails,
    },
    //我的帮帮-我的账单
    {
      path: '/myBill',
      name: 'myBill',
      component: myBill,
    },
  ]
})
